<%@ page import="java.text.SimpleDateFormat" %>
<%@ page import="java.util.Date" %><%--
  Created by IntelliJ IDEA.
  User: the world
  Date: 2021/12/27
  Time: 10:56
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@include file="/jsp/common/head.jsp" %>


<div class="row">
    <div class="card-body">
        <%--            <form>--%>
        <form class="form-horizontal" action="${pageContext.request.contextPath}/productIn?type=xiu1&id=${product.id}" method="post">

            <font color="black" size="5" face="宋体" >现在在进行入库操作</font>
            <div class="form-group">
                <label for="Category1" class="col-sm-2 control-label" >类别1</label>
                <div class="col-sm-10">
                    <input type="text" name="Category1" class="form-control" id="Category1">
                </div>
            </div>
            <div class="form-group">
                <label for="Category2" class="col-sm-2 control-label" >类别2</label>
                <div class="col-sm-10">
                    <input type="text" name="Category2" class="form-control" id="Category2">
                </div>
            </div>

            <div class="form-group">
                <label for="name" class="col-sm-2 control-label" >名称</label>
                <div class="col-sm-10">
                    <input type="text" name="name" class="form-control" id="name" >
                </div>
            </div>
            <div class="form-group">
                <label for="unit" class="col-sm-2 control-label" >单位</label>
                <div class="col-sm-10">
                    <input type="text" name="unit" class="form-control" id="unit">
                </div>
            </div>
            <div class="form-group">
                <label for="number" class="col-sm-2 control-label" >数量</label>
                <div class="col-sm-10">
                    <input type="text" name="number" class="form-control" id="number">
                </div>
            </div>
            <div class="form-group">
                <label for="date" class="col-sm-2 control-label" >日期</label>
                <div class="col-sm-10">
                    <%
                        Date date = new Date();
                        SimpleDateFormat dateFormat= new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
                        String now = dateFormat.format(date);%>
                    <input type="text" name="date" readonly="true" class="form-control" id="date" value="<%=now%>">
                </div>
            </div>
            <div class="form-group">
                <label for="remark" class="col-sm-2 control-label" >备注</label>
                <div class="col-sm-10">
                    <input type="text" name="remark" class="form-control" id="remark">
                </div>
            </div>
            <div class="form-group">
                <label for="supplier" class="col-sm-2 control-label" >供货商</label>
                <div class="col-sm-10">
                    <input type="text" name="supplier" class="form-control" id="supplier">
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-offset-2 col-sm-10">
                    <input type="submit" class="btn btn-primary" value="提交"/>
                    <%--                <a style="margin-top:5px;" href="${pageContext.request.contextPath}/product?type=xiu1&id=<%=product.getId()%>" class="btn btn-primary btn-sm" >修改</a>--%>
                </div>
            </div>
        </form>
    </div>
</div>
<%@include file="/jsp/common/footer.jsp"%>